import SMERouter from 'sme-router';
import active from './active';
import userController from '../controller/userController';
import positionController from '../controller/positionController';


userController.render();

const router = new SMERouter('content')

router.use(active);

router.route('/', (req, res, next) => {
  res.render('home page!');
})

router.route('/position', positionController.render);
router.route('/position_add', positionController.addRender);
router.route('/position_update', positionController.updateRender)

router.route('*', (req, res, next) => {
  res.redirect('/');
})



export default router;